import store from '@/store';
import { LANG_SET_ACTION } from '@/utils/Const';

export const useSetLanguage = (proxy, langType: 'zh' | 'en') => {
	proxy.$i18n.locale = langType;
	store.dispatch(`lang/${LANG_SET_ACTION}`, langType);
};
